/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.radaction.DTO;

import java.util.Date;

/**
 *
 * @author robson
 */
public class Avaliacao {

    private int cod;
    private String descricao;
    private String tarefa;
    private Disciplina disciplina;
    private Date data;
    private boolean flgconcluida;
    private double peso;
    private double nota;

    public Avaliacao() {
       
    }

    public Avaliacao(int cod){
        this.cod = cod;
    }

    public int getCod() {
        return cod;
    }

    public void setCod(int cod) {
        this.cod = cod;
    }

    public Date getData() {
        return data;
    }

    public void setData(Date data) {
        this.data = data;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public Disciplina getDisciplina() {
        return disciplina;
    }

    public void setDisciplina(Disciplina disciplina) {
        this.disciplina = disciplina;
    }

    public String getTarefa() {
        return tarefa;
    }

    public void setConcluida(boolean flgconcluida) {
        this.flgconcluida = flgconcluida;
    }

    public void setTarefa(String tarefa) {
        this.tarefa = tarefa;
    }

    public boolean getFlgConcluida() {
        return flgconcluida;
    }

    
   
    @Override
    public String toString(){
        return this.tarefa;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Avaliacao other = (Avaliacao) obj;
        if (this.cod != other.cod) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
           return this.cod;
    }
    
    
}
